package com.zd01;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import com.github.pagehelper.PageInterceptor;

@SpringBootApplication
public class Zd01Application {

    public static void main(String[] args) {
        SpringApplication.run(Zd01Application.class, args);
    }

    // 配置 PageHelper 的分页插件
    @Bean
    public PageInterceptor pageInterceptor() {
        return new PageInterceptor();
    }
}
